package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiDisplacementMonitoringMapper;
import com.ruoyi.slope.ai.domain.SlopeAiDisplacementMonitoring;
import com.ruoyi.slope.ai.service.ISlopeAiDisplacementMonitoringService;

/**
 * 边坡地位移监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiDisplacementMonitoringServiceImpl implements ISlopeAiDisplacementMonitoringService 
{
    @Autowired
    private SlopeAiDisplacementMonitoringMapper slopeAiDisplacementMonitoringMapper;

    /**
     * 查询边坡地位移监测
     * 
     * @param id 边坡地位移监测主键
     * @return 边坡地位移监测
     */
    @Override
    public SlopeAiDisplacementMonitoring selectSlopeAiDisplacementMonitoringById(Long id)
    {
        return slopeAiDisplacementMonitoringMapper.selectSlopeAiDisplacementMonitoringById(id);
    }

    /**
     * 查询边坡地位移监测列表
     * 
     * @param slopeAiDisplacementMonitoring 边坡地位移监测
     * @return 边坡地位移监测
     */
    @Override
    public List<SlopeAiDisplacementMonitoring> selectSlopeAiDisplacementMonitoringList(SlopeAiDisplacementMonitoring slopeAiDisplacementMonitoring)
    {
        return slopeAiDisplacementMonitoringMapper.selectSlopeAiDisplacementMonitoringList(slopeAiDisplacementMonitoring);
    }

    /**
     * 新增边坡地位移监测
     * 
     * @param slopeAiDisplacementMonitoring 边坡地位移监测
     * @return 结果
     */
    @Override
    public int insertSlopeAiDisplacementMonitoring(SlopeAiDisplacementMonitoring slopeAiDisplacementMonitoring)
    {
        slopeAiDisplacementMonitoring.setCreateTime(DateUtils.getNowDate());
        return slopeAiDisplacementMonitoringMapper.insertSlopeAiDisplacementMonitoring(slopeAiDisplacementMonitoring);
    }

    /**
     * 修改边坡地位移监测
     * 
     * @param slopeAiDisplacementMonitoring 边坡地位移监测
     * @return 结果
     */
    @Override
    public int updateSlopeAiDisplacementMonitoring(SlopeAiDisplacementMonitoring slopeAiDisplacementMonitoring)
    {
        slopeAiDisplacementMonitoring.setUpdateTime(DateUtils.getNowDate());
        return slopeAiDisplacementMonitoringMapper.updateSlopeAiDisplacementMonitoring(slopeAiDisplacementMonitoring);
    }

    /**
     * 批量删除边坡地位移监测
     * 
     * @param ids 需要删除的边坡地位移监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDisplacementMonitoringByIds(Long[] ids)
    {
        return slopeAiDisplacementMonitoringMapper.deleteSlopeAiDisplacementMonitoringByIds(ids);
    }

    /**
     * 删除边坡地位移监测信息
     * 
     * @param id 边坡地位移监测主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDisplacementMonitoringById(Long id)
    {
        return slopeAiDisplacementMonitoringMapper.deleteSlopeAiDisplacementMonitoringById(id);
    }
}
